﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;

public partial class system_ClearAllCache : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnClearAll_Click(object sender, EventArgs e)
    {
        MemcachedTools.ClearAll();
        string con=  System.Configuration.ConfigurationManager.ConnectionStrings["strConn2"].ConnectionString;
        string sql="delete from MemcacheKey";
        SqlHelper.ExecuteNonQuery(con, System.Data.CommandType.Text,sql,null);
        ClientScript.RegisterStartupScript(GetType(), "aa", "alert('清空成功')", true);
    }
}